package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Blob;
import java.time.LocalDateTime;

/**
 * <p>
 * 投票表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("VOTE")
@ApiModel(value="Vote对象", description="投票表")
@KeySequence("SEQ_VOTE")
@NoArgsConstructor
@AllArgsConstructor
public class Vote implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "投票表主键id")
    @TableId(value = "VOTE_ID" , type = IdType.INPUT)
    private Integer voteId;

    @ApiModelProperty(value = "投票活动标题")
    @TableField("VOTE_TITLE")
    private String voteTitle;

    @ApiModelProperty(value = "投票活动内容说明")
    @TableField("VOTE_CONTENT")
    private Blob voteContent;

    @ApiModelProperty(value = "投票活动创建时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "投票活动开始时间")
    @TableField("BEGIN_DATE")
    private LocalDateTime beginDate;

    @ApiModelProperty(value = "投票活动结束时间")
    @TableField("END_DATE")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "投票活动软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
